package com.product.to;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(title = "修改流水线To")
public class UpdateAssemblyLineTo {
    @NotNull(message = "流水线Id不能为空")
    @Schema(title = "流水线id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer lineId;

    @Schema(title = "流水线名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String name;

    @NotNull(message = "订单项id不能为空")
    @Schema(title = "订单项id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long orderItemId;

    @Schema(title = "流水线描述", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String description;
}
